<div id="body_container">
    <div class="detail_container">
      <div class="detail_box">
        <div class="detail_top_curve">
          <div class="detail_detail_content">
            <div class="welcomezone">
              <div style="margin-bottom:10px;">
                <div class="blueboldheading">
                  <h1>Informations</h1>
                </div>
	
<% someinfos = Information.find_by_id(session[:user_id]) %>
<%= flash[:notice] %>

<%= form_for :information do |f| %>
</br>
</br>
<p><strong>
Physical Appearance
</p></strong>
</br>
</br>
<%= f.label 'Height (centimeters)' %>
<center>
<%if someinfos %>
<%= f.number_field :height, :min => '0', :value => someinfos.height %>
<%else%>
<%= f.number_field :height, :min => '0'%>
<%end%>
</center>
<%= f.label :morphology %>
<center>
<%= f.select :morphology, [[(someinfos)?(someinfos.morphology):'',(someinfos)?(someinfos.morphology):''],['Thin','Thin'],['Normal','Normal'],['Sportive','Sportive'],['Generous','Generous'],['Large','Large']] %>
</center>
<%= f.label 'Eyes' %>
<center>
<%= f.select :eyes, [[(someinfos)?(someinfos.eyes):'',(someinfos)?(someinfos.eyes):''],['Black','Black'],['Brown','Brown'],['Blue','Blue'],['Green','Green']] %>
</center>
<%= f.label 'Hair' %>
<center>
<%= f.select :hair, [[(someinfos)?(someinfos.hair):'',(someinfos)?(someinfos.hair):''],['Black','Black'],['Brown','Brown'],['Blond','Blond'],['Red','Red']] %>
</center>
</br>
</br>
</br>
</br>
<p2>
<p><strong>
Marital Informations
</p></strong>
</br>
</br>
<%= f.label 'Type of relation desired' %>
<center>
<%= f.select :typeofrelation, [[(someinfos)?(someinfos.typeofrelation):'',(someinfos)?(someinfos.typeofrelation):''],['Casual','Casual'],['Intimate','Intimate']] %>
</center>
<%=f.label 'Number of children' %>
<center>
<%if someinfos %>
<%=f.number_field :children, :value => someinfos.children, :min => '0' %>
<% else %>
<%=f.number_field :children, :min => '0' %>
<%end %>
</center>
<%=f.label 'Do you want children?' %>
<center>
<%= f.select :wantchildren, [[(someinfos)?(someinfos.wantchildren):'',(someinfos)?(someinfos.wantchildren):''],['Yes','Yes'],['No','No'],['Maybe','Maybe']] %>
</center>
</br>
</br>
</br>
</br>
<p><strong>
Other Informations
</p></strong>
</br>
</br>
<%= f.label 'Astrological Sign' %>
<center>
<%= 
f.select :sign, 
[[(someinfos)?(someinfos.sign):'',(someinfos)?(someinfos.sign):''],
['Aries','Aries'],
['Taurus','Taurus'],
['Gemini','Gemini'],
['Cancer','Cancer'],
['Leo','Leo'],
['Virgo','Virgo'],
['Libra','Libra'],
['Scorpio','Scorpio'],
['Sagittarius','Sagittarius'],
['Capricorn','Capricorn'],
['Aquarius','Aquarius'],
['Pisces','Pisces']] %>
</center>

<%=f.label 'Religion' %>
<center>
<%= f.select :religion, [[(someinfos)?(someinfos.religion):'',(someinfos)?(someinfos.religion):''],['Atheist','Atheist'],['Agnostic','Agnostic'],['Catholic','Catholic'],['Protestant','Protestant'],['Orthodox','Orthodox'],['Jewish','Jewish'],['Sunni islamic','Sunni islamic'],['Shia islamic','Shia islamic'],['Hindu','Hindu'],['Chinese','Chinese'],['Buddhist','Buddhist'],['Other','Other']] %>
</center>
<%= f.label 'Plain annual incomes (euros)' %>
<center>
<% if someinfos %>
<%= f.number_field  :salary , :value=> someinfos.salary, :min => '0'%> 
<%else%>
<%= f.number_field  :salary , :min => '0'%>
<%end%> 
</center>
<%=f.label 'Do you smoke?' %>
<center>
<%= f.select :smoker, [[(someinfos)?(someinfos.smoker):'',(someinfos)?(someinfos.smoker):''],['Yes','Yes'],['No','No'],['From time to time','From time to time']] %>
</center>


<%=f.label 'How often do you do sports?' %>
<center>
<%= f.select :sport, [[(someinfos)?(someinfos.sport):'',(someinfos)?(someinfos.sport):''],['Often','Often'],['Sometimes','Sometimes'],['From time to time','From time to time'],['Never','Never']] %>
</center>
</br>
</br>
</br>
</br>
<center>
<%= f.submit 'Update'%>
</center>
</br>
</br>
<% end %>
</br>
</br>